package com.xiejr.init;

import java.util.concurrent.CountDownLatch;

/**
 * @program: fasttm
 * @description: 异步初始化任务
 * @author: xjr
 * @create: 2020-11-04 15:10
 **/
public interface AsyncAppStartEvent extends Runnable{

    /**
     *
     * @description 初始化
     * @author xiejiarong
     * @date 2020-11-04 15:10
     */
    void init();

    /**
     *
     * @description 项目初始化顺序,越小越靠前
     * @author xiejiarong
     * @date 2020-11-04 15:10
     */
    int order();
    
    /**
     *
     * @return java.lang.String
     * @author xiejr
     * @description: 任务名
     * @date 2020/11/4 15:15
     */
    
    String taskName();


    void setCount(CountDownLatch count);
}
